STEP 11: Time to end our story with one final scene!

  • From drag out Define Function and name the function reward_scene().
  • Drop the Castle and Wizard INSIDE your function. Change the variable name of the sprite to wizard.
  • Position the wizard at -150, -150 and have the wizard say "You defeated the dragon!"
  • Drop a Wait command at the bottom of your function.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)